package RW;

public class TestVehicle {
	/*public static void main(String[] args) {
		Vehicle ve=new Vehicle();
		ve.speed=100;
		ve.size=60;
		System.out.println("交通工具速度为："+ve.speed
				+"\n体积为："+ve.size);
		
		ve.speedUp(40);
		System.out.println("速度增加到"+ve.speed);
		ve.speedDown(80);
		System.out.println("速度减速到"+ve.speed);
	}*/
	public static void main(String[] args) {
		Vehicle ve=new Vehicle(100,60);
		ve.move();
		ve.speedUp();
		System.out.println("加速后"+ve);
		ve.speedDown();
		System.out.println("减速后"+ve);
	}
}
